<?php
function myTest(){
    $a = 30;
    echo "变量a的值：".$a;
}
//myTest();

function myTest1(){
    $a=320;
    echo$a;
}
//myTest1();

$b = 10;
function myTest2(){
//    global $b;
    $c = $GLOBALS['b']+10;
    echo $c;
}
//echo "变量b的值：".$b;
echo "<br>";
//myTest2();

$c=50;
function myTest3(){
    global$c;
    $c=$c+20;
    echo $c;
}
//myTest3();
function myTest4(){
    static $c = 0;
    $c++;
    echo "变量c的值：".$c;
    echo "<br>";
}
//myTest4();
//myTest4();
//myTest4();
function myTest5(){
    static $h=0;
    $h++;
    echo $h;
}
//myTest5();
//myTest5();
//myTest5();

function addTest($e,$f){
    echo $e+$f;
}
//addTest(120,20);

function myTest6($a,$b){
    echo $a+$b;
}
myTest6(70,60);